import request from '@/utils/request'

export function listPermission(params) {
  return request({
    url: '/permission/listPermission',
    method: 'get',
    params: params
  })
}

export function getTree(params) {
  return request({
    url: '/permission/getTree',
    method: 'get',
    params: params
  })
}

export function editPermission(params) {
  return request({
    url: '/permission/editPermission',
    method: 'post',
    params: params
  })
}

export function deletePermission(params) {
  return request({
    url: '/permission/deletePermission',
    method: 'delete',
    params: params
  })
}
